# Note: This file is managed by Puppet.

IMPALA_CATALOG_SERVICE_HOST=<%= @master_host %>
IMPALA_STATE_STORE_HOST=<%= @master_host %>
IMPALA_STATE_STORE_PORT=24000
IMPALA_BACKEND_PORT=22000
IMPALA_LOG_DIR=/var/log/impala

IMPALA_CATALOG_ARGS=" -log_dir=${IMPALA_LOG_DIR} "
IMPALA_STATE_STORE_ARGS=" -log_dir=${IMPALA_LOG_DIR} -state_store_port=${IMPALA_STATE_STORE_PORT}"
# By default impalad seems to report itself using its short hostname, and YARN
# refers to it by its full hostname.  This makes Impala work with YARN.
# adding -hostname forces impalad to report itself using FQDN.
IMPALA_SERVER_ARGS=" \
    -hostname=<%= @fqdn %> \
    -num_cores=<%= @num_cores %> \
    -mem_limit=<%= @mem_limit %> \
    -idle_query_timeout=<%= @idle_query_timeout %> \
    -idle_session_timeout=<%= @idle_session_timeout %> \
    -log_dir=${IMPALA_LOG_DIR} \
    -catalog_service_host=${IMPALA_CATALOG_SERVICE_HOST} \
    -state_store_port=${IMPALA_STATE_STORE_PORT} \
    -use_statestore \
    -state_store_host=${IMPALA_STATE_STORE_HOST} \
    -be_port=${IMPALA_BACKEND_PORT} \
    -use_local_tz_for_unix_timestamp_conversions<% if not @enable_rm %>"<% else %> \
    -enable_rm \
    -llama_host=<%= @master_host %> \
    -cgroup_hierarchy_path=<%= @cgroup_path %> \
    -local_nodemanager_url=http://127.0.0.1:8042 \
    -rm_always_use_defaults<% if not @fair_scheduler_enabled %>"<% else %> \
    -fair_scheduler_allocation_path=/etc/hadoop/conf/fair-scheduler.xml"<% end %><% end %>

ENABLE_CORE_DUMPS=false

# LIBHDFS_OPTS=-Djava.library.path=/usr/lib/impala/lib
# MYSQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar
# IMPALA_BIN=/usr/lib/impala/sbin
# IMPALA_HOME=/usr/lib/impala
# HIVE_HOME=/usr/lib/hive
# HBASE_HOME=/usr/lib/hbase
# IMPALA_CONF_DIR=/etc/impala/conf
# HADOOP_CONF_DIR=/etc/impala/conf
# HIVE_CONF_DIR=/etc/impala/conf
# HBASE_CONF_DIR=/etc/impala/conf
